package com.helloworld.chat.service;

import com.helloworld.chat.cache.UserCache;
import com.helloworld.chat.entity.User;

/**
 * Created by xdzy on 2017/6/28.
 */
public interface UserService {
    void register(User user);
    User login(User user);
    User getUser(int id);
    User findByUserName(String username);
    void update(User user);
    User findById(int uid);
    UserCache getUserCache();
}